package com.example.demo.decorator;

/**
 * @Description
 * @Author youxin
 * @Version V1.0.0
 * @Since 1.0
 * @Date 2022/1/13
 */
public class CoffeeBar {
    public static void main(String[] args) {
        Drink order=new LongbackCoffee();
        System.out.println("费用"+order.cost());
        System.out.println("描述"+order.getDes());
        order=new Soy(order);
        System.out.println("order加一份豆浆费用"+order.cost());
        System.out.println("order加一份豆浆描述"+order.getDes());


    }
}
